﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;//AGREGAR

namespace ViewModel.Models
{
    public class LogueoViewModel
    {

        [Required(ErrorMessage = "Ingrese el nombre de usuario:")]
        [Display(Name = "Usuario:")]
        //[RegularExpression(@"^[a-zA-Z0-9]+$", ErrorMessage = "Solo caracteres alfanuméricos.")] MatriculaContext
        //[StringLength(50, ErrorMessage = "Se requiere al menos {2} caracteres", MinimumLength = 6)]
        public string Usuario { get; set; }


        [Required(ErrorMessage = "Ingrese la contraseña")]
        [Display(Name = "Contraseña:")]
        public string Contrasenna { get; set; }
    }
}
